package com.sgcc.sx.pmos.e_sx_personalcenter.activity;

import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.alibaba.android.arouter.launcher.ARouter;
import com.blankj.utilcode.util.AppUtils;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.sx.pmos.arouter.personalcenter.PersonalCenterArouterPath;
import com.sgcc.sx.pmos.common.base.BasePresenter;
import com.sgcc.sx.pmos.common.base.MvpBaseActivity;
import com.sgcc.ln.pmos.common.widget.TitleBar;

public class TermAgreementActivity extends MvpBaseActivity {

    private TextView mVersionCode;
    private RelativeLayout yszc_relative;

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.activity_term_agreement_sx;
    }


    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected void initViews() {
        super.initViews();
        mVersionCode = findViewById(R.id.version_code);
        TitleBar titleBar = findViewById(R.id.titleBar);
        titleBar.setTitle("条款协议");
        titleBar.setRightIcon(R.mipmap.go_main, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                goMainActivity();
            }
        });
        yszc_relative= findViewById(R.id.yszc_relative);

        mVersionCode.setText("版本号 " + AppUtils.getAppVersionName());

        yszc_relative.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //        //隐私政策
        ARouter.getInstance()
                .build(PersonalCenterArouterPath.PERSONALCENTER_PRIVACYPOLICY)
                .navigation();
            }
        });


    }
}